package com.ruoyi.help.mapper;

import com.ruoyi.help.domain.Appointment;

import java.util.List;


/**
 * 帮扶预约Mapper接口
 *
 * @author ruoyi
 * @date 2023-05-19
 */
public interface AppointmentMapper {
    /**
     * 查询帮扶预约
     *
     * @param id 帮扶预约主键
     * @return 帮扶预约
     */
    public Appointment selectAppointmentById(String id);

    /**
     * 查询帮扶预约列表
     *
     * @param appointment 帮扶预约
     * @return 帮扶预约集合
     */
    public List<Appointment> selectAppointmentList(Appointment appointment);

    /**
     * 新增帮扶预约
     *
     * @param appointment 帮扶预约
     * @return 结果
     */
    public int insertAppointment(Appointment appointment);

    /**
     * 修改帮扶预约
     *
     * @param appointment 帮扶预约
     * @return 结果
     */
    public int updateAppointment(Appointment appointment);

    /**
     * 删除帮扶预约
     *
     * @param id 帮扶预约主键
     * @return 结果
     */
    public int deleteAppointmentById(String id);

    /**
     * 批量删除帮扶预约
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppointmentByIds(String[] ids);
}
